package top.wshape1.largefileupload.service;

import java.io.InputStream;

/**
 * @author Wshape1
 * @version 1.0
 * @description
 * @since 2025-01-24
 */

public interface MinioService {

    String generateDownloadUrl(String objectName);

    String checkFile(String fileMd5);

    String checkChunk(String fileMd5, int chunkIndex);

    void uploadFile(String objectName, String fileMd5, InputStream inputStream, String contentType);

    void uploadChunk(String fileMd5, int chunkIndex, InputStream inputStream);

    void mergeChunks(String finalObjectName, String md5, Integer chunks);
}
